//thread_pool.h
 
#ifndef THREAD_POOL_H_INCLUDED
#define THREAD_POOL_H_INCLUDED

#include "queue.h"
#include <stdlib.h>
#include <pthread.h>
typedef struct thread_pool *thread_pool_t;
 
thread_pool_t thread_pool_create(unsigned int thread_count);
 
void thread_pool_add_task(thread_pool_t pool, void* (*routine)(void *arg), void *arg);
 
void thread_pool_destroy(thread_pool_t pool);
 
#endif	//THREAD_POOL_H_INCLUDED